package ru.jexp.rcp.supply.beans.correlate;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.ui.IWorkbenchWindow;

import ru.jexp.rcp.supply.img.JExpImageLink;
import ru.jexp.rcp.supply.mui.JExpSupplyMessages;

public class ActionCorrelateWizard extends Action {

	private static final String ID = "ru.jexp.rcp.supply.beans.correlate.actioncorrelatewizard";

	public ActionCorrelateWizard(IWorkbenchWindow window) {
		super();
		setId(ID);
		setActionDefinitionId(ID);
		setText(JExpSupplyMessages.Correlate_wizard_action_text);
		setToolTipText(JExpSupplyMessages.Correlate_wizard_action_tooltip);
		setImageDescriptor(JExpImageLink
				.getImageDescriptor(JExpImageLink.CORRELATE));
	}

	@Override
	public void run() {
		WizardDialog dialog = new WizardDialog(null, new WizardCorrelate());
		dialog.open();
	}
}
